<?php
$code = <<<EOF
// curd
	s.POST("/api/v1/{$data['service_name_uri']}/{$data['table_name_uri']}/item/add", {$data['model_name']}Add)            //新增
	s.POST("/api/v1/{$data['service_name_uri']}/{$data['table_name_uri']}/item/update", {$data['model_name']}Update)      //更新
	s.GET("/api/v1/{$data['service_name_uri']}/{$data['table_name_uri']}/item/delete", {$data['model_name']}Delete)       //删除
	s.GET("/api/v1/{$data['service_name_uri']}/{$data['table_name_uri']}/item/detail", {$data['model_name']}Detail)           //详情
	s.GET("/api/v1/{$data['service_name_uri']}/{$data['table_name_uri']}/item/list", {$data['model_name']}List)               //列表
	//todo 按需修改uri
EOF;
?>
<?= $code?>
